package com.ywy.shiro;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 登录成功后返回信息
 *
 * @author ywy
 * @date 2021/12/27 14:49
 */
@Data
public class AccountProfile implements Serializable {
    private Integer id;
    private String username;
    private String email;
    private String sign;
    private String gender;
    private String vipLevel;
    private String avatar;
    private Date createTime;

    public String getSex() {
        return "0".equals(gender) ? "女" : "男";
    }
}
